<?php slot('index','now'); ?>
<div class="Wgpic">
	<div class="Cw1280">
    	<!--此处的图片大小顺序不能乱-->
        
    	<div class="h248pic w508">
            <a href="<?php echo (DefaultRecommendTable::getPositionInfo(1)) ? ( DefaultRecommendTable::getPositionInfo(1)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>"><img src="<?php echo (DefaultRecommendTable::getPositionInfo(1)) ? (DefaultRecommendTable::getPositionInfo(1)->getCover()) : image_path('800x410.png');   ?>" width="508" height="248" /></a>
            <div class="pict">
                <a href="<?php echo (DefaultRecommendTable::getPositionInfo(1)) ? ( DefaultRecommendTable::getPositionInfo(1)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>">
                <?php echo (DefaultRecommendTable::getPositionInfo(1)) ? (DefaultRecommendTable::getPositionInfo(1)->getTitle()) : DefaultRecommend::$default_info['title'];   ?>
                </a>
            </div>
        </div>
        
        <div class="h248pic w248">
        	<a href="<?php echo (DefaultRecommendTable::getPositionInfo(2)) ? ( DefaultRecommendTable::getPositionInfo(2)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>"><img src="<?php echo (DefaultRecommendTable::getPositionInfo(2)) ? (DefaultRecommendTable::getPositionInfo(2)->getCover()) : image_path('800x410.png');   ?>" width="248" height="248" /></a>
            <div class="pict">
                <a href="<?php echo (DefaultRecommendTable::getPositionInfo(2)) ? ( DefaultRecommendTable::getPositionInfo(2)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>">
                <?php echo (DefaultRecommendTable::getPositionInfo(2)) ? (DefaultRecommendTable::getPositionInfo(2)->getTitle()) : DefaultRecommend::$default_info['title'];   ?>
                </a>
            </div>
        </div>
        
        <div class="h248pic w248">
        	<a href="<?php echo (DefaultRecommendTable::getPositionInfo(3)) ? ( DefaultRecommendTable::getPositionInfo(3)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>"><img src="<?php echo (DefaultRecommendTable::getPositionInfo(3)) ? (DefaultRecommendTable::getPositionInfo(3)->getCover()) : image_path('800x410.png');   ?>" width="248" height="248" /></a>
            <div class="pict">
                <a href="<?php echo (DefaultRecommendTable::getPositionInfo(3)) ? ( DefaultRecommendTable::getPositionInfo(3)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>">
                <?php echo (DefaultRecommendTable::getPositionInfo(3)) ? (DefaultRecommendTable::getPositionInfo(3)->getTitle()) : DefaultRecommend::$default_info['title'];   ?>
                </a>
            </div>
        </div>
        
        <div class="w238pic">
        	<a href="<?php echo (DefaultRecommendTable::getPositionInfo(4)) ? ( DefaultRecommendTable::getPositionInfo(4)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>"><img src="<?php echo (DefaultRecommendTable::getPositionInfo(4)) ? (DefaultRecommendTable::getPositionInfo(4)->getCover()) : image_path('800x410.png');   ?>" width="238" height="418" /></a>
            <div class="pict">
                <a href="<?php echo (DefaultRecommendTable::getPositionInfo(4)) ? ( DefaultRecommendTable::getPositionInfo(4)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>">
                <?php echo (DefaultRecommendTable::getPositionInfo(4)) ? (DefaultRecommendTable::getPositionInfo(4)->getTitle()) : DefaultRecommend::$default_info['title'];   ?>
                </a>
            </div>
        </div>
        
        <div class="h158pic">
        	<a href="<?php echo (DefaultRecommendTable::getPositionInfo(5)) ? ( DefaultRecommendTable::getPositionInfo(5)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>"><img src="<?php echo (DefaultRecommendTable::getPositionInfo(5)) ? (DefaultRecommendTable::getPositionInfo(5)->getCover()) : image_path('800x410.png');   ?>" width="248" height="158" /></a>
            <div class="pict">
                <a href="<?php echo (DefaultRecommendTable::getPositionInfo(5)) ? ( DefaultRecommendTable::getPositionInfo(5)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>">
                <?php echo (DefaultRecommendTable::getPositionInfo(5)) ? (DefaultRecommendTable::getPositionInfo(5)->getTitle()) : DefaultRecommend::$default_info['title'];   ?>
                </a>
            </div>
        </div>
        
        <div class="h158pic">
        	<a href="<?php echo (DefaultRecommendTable::getPositionInfo(6)) ? ( DefaultRecommendTable::getPositionInfo(6)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>"><img src="<?php echo (DefaultRecommendTable::getPositionInfo(6)) ? (DefaultRecommendTable::getPositionInfo(6)->getCover()) : image_path('800x410.png');   ?>" width="248" height="158" /></a>
            <div class="pict">
                <a href="<?php echo (DefaultRecommendTable::getPositionInfo(6)) ? ( DefaultRecommendTable::getPositionInfo(6)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>">
                <?php echo (DefaultRecommendTable::getPositionInfo(6)) ? (DefaultRecommendTable::getPositionInfo(6)->getTitle()) : DefaultRecommend::$default_info['title'];   ?>
                </a>
            </div>
        </div>
        
        <div class="h158pic" style="margin-left:1px;">
        	<a href="<?php echo (DefaultRecommendTable::getPositionInfo(7)) ? ( DefaultRecommendTable::getPositionInfo(7)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>"><img src="<?php echo (DefaultRecommendTable::getPositionInfo(7)) ? (DefaultRecommendTable::getPositionInfo(7)->getCover()) : image_path('800x410.png');   ?>" width="248" height="158" /></a>
            <div class="pict">
                <a href="<?php echo (DefaultRecommendTable::getPositionInfo(7)) ? ( DefaultRecommendTable::getPositionInfo(7)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>">
                <?php echo (DefaultRecommendTable::getPositionInfo(7)) ? (DefaultRecommendTable::getPositionInfo(7)->getTitle()) : DefaultRecommend::$default_info['title'];   ?>
                </a>
            </div>
        </div>
        
        <div class="h158pic" style="margin-left:1px;">
            <a href="<?php echo (DefaultRecommendTable::getPositionInfo(8)) ? ( DefaultRecommendTable::getPositionInfo(8)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>"><img src="<?php echo (DefaultRecommendTable::getPositionInfo(8)) ? (DefaultRecommendTable::getPositionInfo(8)->getCover()) : image_path('800x410.png');   ?>" width="248" height="158" /></a>
                <div class="pict">
                    <a href="<?php echo (DefaultRecommendTable::getPositionInfo(8)) ? ( DefaultRecommendTable::getPositionInfo(8)->getUrl() ) : DefaultRecommend::$default_info['url']; ?>">
                <?php echo (DefaultRecommendTable::getPositionInfo(8)) ? (DefaultRecommendTable::getPositionInfo(8)->getTitle()) : DefaultRecommend::$default_info['title'];   ?>
               </a>
                </div>
        </div>
        
    </div>
</div>

<div class="W100p mainptn">
	<div class="Cw1280">
       <?php include_component('worry', 'default_worry_list'); ?>
        
        <!--右边-->
        <div class="DeRight">
            <?php if($sf_user->isAuthenticated()): ?>
  <form action="<?php echo url_for('worry/create'); ?>" method="post" class="TwForm" style="padding-top:20px;" onSubmit="return CheckForm();">
            	<textarea name="content" id="content-t"></textarea>
                <input type="text" name="title" id="title-t" placeholder="给你的问题起个标题吧">
                <input type="submit" name="" value="发布新的问题">
            </form>
             <?php endif; ?>
            
            <?php include_component('worry', 'default_no_answer_list'); ?>
            
            <?php include_component('article', 'default_maxread_list'); ?>
            
            <div class="Detitle"><h1>课程活动</h1><h3><a href="">更多活动</a>></h3></div>
            <div class="Rkchdlist"><div style="width:120%;">
            	<div class="Kcbor">
                	<div class="Kctime">7月2日</div>
                    <div class="Kcimg"><img src="images/img10.jpg" width="240" height="135"></div>
                    <div class="Kctsx">
                    	<div class="Dewti"><a href="">第347期家排工作坊</a></div>
                        <div class="st">家排课在家庭关系中的作用关系中的啊关系中的作用关系中的作用</div>
                    </div>
                    <div class="KcJs">
                    	<div class="KcJsimg"><img src="images/pto3.jpg" width="35" height="35"></div>
                        <div class="KcJsTx">
                        	<div class="Na"><a href="">曹琳珠</a>&nbsp;主讲</div>
                            <div class="Na">二级咨询师  心理辅导老师</div>
                        </div>
                    </div>
                    <div class="Kcpor">
                    	<div><span>43%</span><br>已达</div>
                        <div class="lbor"><span>25人</span><br>已报名</div>
                        <div class="lbor"><span>20天</span><br>剩余时间</div>
                    </div>
                </div>
                
                <div class="Kcbor">
                	<div class="Kctime">7月2日</div>
                    <div class="Kcimg"><img src="images/img11.jpg" width="240" height="135"></div>
                    <div class="Kctsx">
                    	<div class="Dewti"><a href="">第347期家排工作坊</a></div>
                        <div class="st">家排课在家庭关系中的作用关系中的啊关系中的作用关系中的作用</div>
                    </div>
                    <div class="KcJs">
                    	<div class="KcJsimg"><img src="images/pto3.jpg" width="35" height="35"></div>
                        <div class="KcJsTx">
                        	<div class="Na"><a href="">曹琳珠</a>&nbsp;主讲</div>
                            <div class="Na">二级咨询师  心理辅导老师</div>
                        </div>
                    </div>
                    <div class="Kcpor">
                    	<div><span>43%</span><br>已达</div>
                        <div class="lbor"><span>25人</span><br>已报名</div>
                        <div class="lbor"><span>20天</span><br>剩余时间</div>
                    </div>
                </div>
                
                <div class="Kcbor">
                	<div class="Kctime">7月2日</div>
                    <div class="Kcimg"><img src="images/img12.jpg" width="240" height="135"></div>
                    <div class="Kctsx">
                    	<div class="Dewti"><a href="">第347期家排工作坊</a></div>
                        <div class="st">家排课在家庭关系中的作用关系中的啊关系中的作用关系中的作用</div>
                    </div>
                    <div class="KcJs">
                    	<div class="KcJsimg"><img src="images/pto3.jpg" width="35" height="35"></div>
                        <div class="KcJsTx">
                        	<div class="Na"><a href="">曹琳珠</a>&nbsp;主讲</div>
                            <div class="Na">二级咨询师  心理辅导老师</div>
                        </div>
                    </div>
                    <div class="Kcpor">
                    	<div><span>43%</span><br>已达</div>
                        <div class="lbor"><span>25人</span><br>已报名</div>
                        <div class="lbor"><span>20天</span><br>剩余时间</div>
                    </div>
                </div>
                
                <div class="Kcbor">
                	<div class="Kctime">7月2日</div>
                    <div class="Kcimg"><img src="images/img13.jpg" width="240" height="135"></div>
                    <div class="Kctsx">
                    	<div class="Dewti"><a href="">第347期家排工作坊</a></div>
                        <div class="st">家排课在家庭关系中的作用关系中的啊关系中的作用关系中的作用</div>
                    </div>
                    <div class="KcJs">
                    	<div class="KcJsimg"><img src="images/pto3.jpg" width="35" height="35"></div>
                        <div class="KcJsTx">
                        	<div class="Na"><a href="">曹琳珠</a>&nbsp;主讲</div>
                            <div class="Na">二级咨询师  心理辅导老师</div>
                        </div>
                    </div>
                    <div class="Kcpor">
                    	<div><span>43%</span><br>已达</div>
                        <div class="lbor"><span>25人</span><br>已报名</div>
                        <div class="lbor"><span>20天</span><br>剩余时间</div>
                    </div>
                </div>
                
            </div></div>
            
        </div>
        
    </div>
</div>
<script>
    	function CheckForm(){
		var content = jQuery.trim($('#content-t').val());
		var title = jQuery.trim($('#title-t').val());
		if(content.length<=0){
			layer.msg('问题总有的，写点什么吧！');
			return false;
		}
		if(title.length<=0){
			layer.msg('请给问题起个标题！');
			return false;
		}
		return true;
	}
$(document).ready(function(){});
</script>